﻿namespace IQIGame.Onigao.GamePlay
{
    using static UIWarehouseTabType;
    /// <summary>
    /// 类名 : API - UIWarehouse 界面
    /// 作者 : Canyon / 龚阳辉
    /// 日期 : 2024-05-16 16:18
    /// 功能 : 
    /// </summary>
    public static class APIUIWarehouse
    {
        /// <summary>
        /// 获取页签文本内容
        /// </summary>
        /// <param name="tab"></param>
        /// <returns>页面名</returns>
        static public string GetTabName(int tab)
        {
            return (UIWarehouseTabType)tab switch
            {
                Gift => "礼包",
                Material => "素材",
                Hero => "英雄碎片",
                MazeItem => "迷宫道具",
                Other => "其他",
                _ => "所有",
            };
        }
    }
}
